<template>
    <div> 
        我是关于
        <br>
        <h5>id:{{query.id}}</h5>
        <h5>姓名：{{query.name}}</h5>
    </div>

</template>

<script lang="ts" setup>
//接收query模式传递的参数
/*
http://dbs.com/about?id=1&name=lilei
*/
import { useRoute } from 'vue-router'
import { toRefs } from 'vue'
const route = useRoute()
console.log(route.query)
let {query} = toRefs(route)
</script>

<style scoped>

</style>